
Array.myIsArray = function (arr) {

    return Object.prototype.toString.call(arr) === '[object Array]'
}
const arr = [1,2,3,5]
const obj = {
    t:1
}
console.log(Array.myIsArray(arr))
console.log(Array.myIsArray(obj))
